package com.taru.university.service.impl;

import com.taru.university.mapper.AnaliseMapper;
import com.taru.university.model.Analise;
import com.taru.university.service.AnaliseService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class AnasileServiceImpl implements AnaliseService {
    @Autowired
    AnaliseMapper analiseMapper;

    /**
     * 根据userId和数据批次号查询结果
     * @param userId
     * @param dataBatchNumber
     * @return
     */
    @Override
    public Analise queryAnaliseResult(String userId, String dataBatchNumber) {
        return analiseMapper.queryAnaliseResult( userId,  dataBatchNumber);
    }

    /**
     * 插入结果
     * @param analise
     */
    @Override
    public void insertAnaliseResult(Analise analise) {
        analiseMapper.insertAnaliseResult(analise);
    }

    /**
     * 删除结果
     * @param userId
     * @param dataBatchNumber
     */
    @Override
    public void deletetAnaliseResult(String userId, String dataBatchNumber) {
        analiseMapper.deletetAnaliseResult( userId, dataBatchNumber);
    }

}
